onAjaxCallbackNotAvailable

Arguments

eobject

An object with the following properties:

xbasicFunctionNamestring

The Xbasic function that was called in the Ajax Callback.

ajaxEventstring

The name of the event that triggered the Ajax Callback.

callbackIdstring

A GUID that identifies the callback, allowing you to match it with the canAjaxCallback event for a specific callback.

Description

Fires when an Ajax callback is attempted and the device is not currently online (i.e. connected to the internet). Differs from the 'onAjaxCallbackFailed' event in that 'onAjaxCallbackNotAvailable' fires immediately. The 'onAjaxCallbackFailed' event fires after the callback has timed out.

Example

var title = "No Connection";
var message = "<div>Your device is offline.</div>";

A5.msgBox.show(title,message,'o');

See Also